import { Mt, MtEntity } from '@/api/manager/mt'
//呼叫终端
export interface ChasingModel {
	mcc: Mt
	status: {
		checked: boolean
	}
	mtKey: Mt['mtKey']
	number: string
}
export type ListModel = ChasingModel[]
function _Translator(mt: MtEntity): ChasingModel {
	let _mt = new Mt(mt)
	return {
		mcc: _mt,
		status: {
			checked: false,
		},
		mtKey: _mt.mtKey,
		number: '',
	}
}
function Translator(mt: MtEntity): ChasingModel {
	let _mt = new Mt(mt)
	return {
		mcc: _mt,
		status: {
			checked: false,
		},
		mtKey: _mt.mtKey,
		number: '',
	}
}
export const _ListTranslator = (list: MtEntity[]): ListModel => list.map((mt) => _Translator(mt))
export const ListTranslator = (list: MtEntity[]): ListModel => list.map((mt) => Translator(mt))
